#define _GNU_SOURCE
#include "../app/app_pool.h"
#include "../thirdparty/log.h"
#include <unistd.h>
static void* test_func(void* args)
{
    log_info("helloword  tid=%d\n",gettid());
}
int main(void)
{
    /*初始化线程池*/
    App_pool_Init();
    /*向队列内注册任务*/
    App_pool_Submit_Task(test_func,NULL);
    App_pool_Submit_Task(test_func,NULL);
    App_pool_Submit_Task(test_func,NULL);
    App_pool_Submit_Task(test_func,NULL);
    App_pool_Submit_Task(test_func,NULL);
    /*删除线程池*/
    sleep(3);
    App_pool_destroy();
    return 0;

}